<!DOCTYPE html>
<html lang="zh-cn" >
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta
      name="author"
      content="awesome404"
    />
      
    <title>MySQL入门 ｜ 鹊木笔记</title>
    
    
    
    <meta name="description" content="MySQL 简介 MySQL 由瑞典 MySQL AB 公司开发，目前属于 Oracle 公司 MySQL 是一个开源的关系型数据库管理系统 MySQL 分为社区版和企业版 MySQL 安装 下载 推荐使用 mirrors.163.com 网易镜像站下载 安装方式 MSI 安装 (Windows Installer) ZIP 安装 HomeBrew安装(Mac Installer) 一. MSI 方式 安装简" />
      
    <meta
      name="keywords"
      content="Blog, 程序员, 前端"
    />
      <link
    rel="shortcut icon" href="https://awesome404.gitee.io/images/favicon.ico" />

    <link
      rel="stylesheet"
      type="text/css"
      media="screen"
      href="https://awesome404.gitee.io/css/normalize.css"
    />
    <link
      rel="stylesheet"
      type="text/css"
      media="screen"
      href="https://cdn.jsdelivr.net/npm/animate.css@4.1.0/animate.min.css"
    />
    <link rel="stylesheet" type="text/css" media="screen" href="https://awesome404.gitee.io/css/zozo.css" />
    <link
      rel="stylesheet"
      type="text/css"
      media="screen"
      href="https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css"
    />
    <link rel="stylesheet" type="text/css" media="screen" href="https://awesome404.gitee.io/css/highlight.css" />

    
    
  </head>
</html>


<body>
    <div class="main animate__animated animate__fadeInDown">
        
<div class="nav_container animated fadeInDown">
  <div class="site_nav" id="site_nav">
    <ul>
      
      <li>
        <a href="/">首页</a>
      </li>
      
      <li>
        <a href="/posts/">归档</a>
      </li>
      
      <li>
        <a href="/tags/">标签</a>
      </li>
      
      <li>
        <a href="/about/">关于</a>
      </li>
      
    </ul>
  </div>
  <div class="menu_icon">
    <a id="menu_icon">
      <i class="ri-settings-line"></i>
    </a>
  </div>
</div>

        <div class="header animated fadeInDown">
  <div class="site_title_container">
    <div class="site_title">
      <h1>
        <a href="https://awesome404.gitee.io">
          <span>鹊木笔记</span>
        </a>
      </h1>
    </div>
    <div class="description">
      <p class="sub_title">
        前端菜鸡的自我修养
      </p>
      <div class="my_socials">
         
        <a href="https://github.com/404Awesome" title="github" target="_blank"
          ><i class="ri-github-fill"></i
        ></a>
         
        <a
          href="https://awesome404.gitee.io/index.xml"
          type="application/rss+xml"
          title="rss"
          target="_blank"
          ><i class="ri-rss-fill"></i
        ></a>
      </div>
    </div>
  </div>
</div>

        <div class="content">
            <div class="post_page">
                <div class="post animate__animated animate__fadeInDown">
                    <div class="post_title post_detail_title">
                        <h2><a href='/posts/mysql%E5%85%A5%E9%97%A8/'>MySQL入门</a></h2>
                        <span class="date">2020.05.30</span>
                    </div>
                    <div class="post_content markdown"><h1 id="mysql-简介">MySQL 简介</h1>
<ol>
<li>MySQL 由瑞典 MySQL AB 公司开发，目前属于 Oracle 公司</li>
<li>MySQL 是一个开源的关系型数据库管理系统</li>
<li>MySQL 分为社区版和企业版</li>
</ol>
<h1 id="mysql-安装">MySQL 安装</h1>
<h2 id="下载">下载</h2>
<blockquote>
<p>推荐使用 <a href='http://mirrors.163.com/' target='_blank'>mirrors.163.com</a> 网易镜像站下载</p>
</blockquote>
<h2 id="安装方式">安装方式</h2>
<ol>
<li>MSI 安装 (Windows Installer)</li>
<li>ZIP 安装</li>
<li>HomeBrew安装(Mac Installer)</li>
</ol>
<h3 id="一-msi-方式">一. MSI 方式</h3>
<h4 id="安装简介">安装简介</h4>
<ol>
<li>安装简单</li>
<li>通过可视化页面进行操作</li>
<li>适合 Windows install</li>
</ol>
<h4 id="安装方式-1">安装方式</h4>
<ol>
<li>
<p>下载 / 打开</p>
</li>
<li>
<p>选择安装类型</p>
<ol>
<li>典型安装</li>
<li>自定义安装</li>
<li>完全安装</li>
</ol>
</li>
<li>
<p>安装服务</p>
</li>
<li>
<p>点击添加到环境变量</p>
</li>
<li>
<p>设置端口号 / 用户名 / 密码</p>
</li>
</ol>
<h3 id="二-zip-方式">二. ZIP 方式</h3>
<h4 id="安装简介-1">安装简介</h4>
<ol>
<li>需自行添加环境变量</li>
<li>需自行安装数据库服务</li>
<li>需自行配置</li>
</ol>
<h4 id="安装方式-2">安装方式</h4>
<ol>
<li>下载解压</li>
<li>配置文件</li>
<li>配置环境变量</li>
<li>安装服务 / 启动</li>
<li>配置用户名与密码</li>
</ol>
<h3 id="三-homebrew-安装">三. HomeBrew 安装</h3>
<ol>
<li>安装 MySQL 之前需安装 HomeBrew</li>
<li>终端输入 brew install mysql</li>
<li>接着输入 brew services start mysql</li>
<li>MySql 服务就启动了</li>
</ol>
</div>
                    <div class="post_footer">
                        
                        
                        <div id="link">
                            <p>本博客所有文章除特别声明外，均采用 CC BY-SA 3.0协议 。转载请注明出处！</p>
                            <p><span id="link_href"></span><i class="ri-file-copy-2-line link_btn"></i></p>
                        </div>
                        
                        <div class="meta">
                            <div class="info">
                                <span class="field tags">
                                    <i class="ri-price-tag-2-line"></i>
                                    
                                    <a href="https://awesome404.gitee.io/tags/mysql/">MySQL</a>
                                    
                                </span>
                            </div>
                        </div>
                        
                    </div>
                </div>
                
                
            </div>
        </div>
    </div>
    <a id="back_to_top" href="#" class="back_to_top"><i class="ri-arrow-up-s-line"></i></a>
    
<style>
  #hitokoto {
    overflow: hidden;
    margin: 0 auto;
    width: 80%;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    color: #424242;
  }

  .footer {
    padding: 30px 0px;
  }
</style>

<footer class="footer">
  <p id="hitokoto">:D 获取中...</p>
</footer>

<script>
  fetch("https://v1.hitokoto.cn")
    .then((response) => response.json())
    .then((data) => {
      const hitokoto = document.getElementById("hitokoto");
      hitokoto.href = "https://hitokoto.cn/?uuid=" + data.uuid;
      hitokoto.innerText = data.hitokoto;
    })
    .catch((err) => err);
</script>

    <script src="https://awesome404.gitee.io/js/jquery-3.5.1.min.js"></script>
<link href="https://awesome404.gitee.io/css/fancybox.min.css" rel="stylesheet">
<script src="https://awesome404.gitee.io/js/fancybox.min.js"></script>
<script src="https://awesome404.gitee.io/js/zozo.js"></script>




</body>


<script>
    (function (){
        
        function handleIcon (remove, target){
            this.classList.remove(remove);
            this.classList.add(target);
        }

        let hrefEl = document.getElementById("link_href");
        let copyBtn = document.getElementsByClassName("link_btn")[0];
        if (hrefEl){
            hrefEl.innerText = `文章链接: ${location.href}`;
            
            copyBtn.onclick = (event) => {
                
                navigator.clipboard.writeText(`文章转载自: ${location.href}`)
                
                handleIcon.call(event.target, "ri-file-copy-2-line", "ri-check-line");
                let timer = setTimeout(() => {
                    handleIcon.call(event.target, "ri-check-line", "ri-file-copy-2-line");
                    clearTimeout(timer)
                }, 1000)
            }
        }
    })();
</script>
</html>